package cn.meye11.crm.mapper;

import cn.meye11.crm.domain.entity.ConsumptionRecordsEntity;
import cn.meye11.crm.domain.query.ConsumptionRecordsQuery;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;
/**
 * 消费记录表(ConsumptionRecords)表数据库访问层
 * 
 * @author makejava
 * @since 2023-11-18 19:20:43
 */
@Repository
public interface ConsumptionRecordsMapper extends Mapper<ConsumptionRecordsEntity> {

    @SelectProvider(type = ConsumptionRecordsProvider.class, method = "list")
    List<ConsumptionRecordsEntity> list(ConsumptionRecordsQuery query);
    
    @SelectProvider(type = ConsumptionRecordsProvider.class, method = "count")
    Long count(ConsumptionRecordsQuery query);
}
